﻿<div ng-init="currentTab='notifications'" ng-include="'Views/Menu/NewsCalendarEventMenu.html'"></div>

<div class="title-bold" style="font-size: 16px;">
    <p>Notification Details | Status: {{notificationAddEdit.currentStatusDescription}}</p>
</div>

<div class="container-fluid">
    <div class="row">
        <form role="form" name="form" novalidate>
            <div class="form-horizontal col-md-5">              
                <div id="notificationSummary" name="body" required class="editor-field" text-angular ng-maxlength="5000" ng-model="notificationAddEdit.currentNotification.body"
                     ta-toolbar="[['h1','h2','h3'],['p','bold','italics','underline'],['insertLink'],['html']]">
                </div>
                <div style="min-height: 20px; margin-top: 5px; margin-bottom: 10px">
                    <p style="margin: 0px" class="help-block" ng-show="form.body.$invalid && notificationAddEdit.submitted">This field is required</p>
                </div>
            </div>
            <br />
            <div class="col-xs-11 col-md-11" style="padding-top:10px">
                <button class="btn-green" style="width: 151px; margin-right: 10px;" ng-disabled="notificationAddEdit.isPublished" ng-click="notificationAddEdit.publish()">Publish</button>
                <button class="btn-green" style="margin-right: 10px;" ng-disabled="!notificationAddEdit.isPublished" ng-click="notificationAddEdit.unpublish()">Unpublish</button>
            </div>
        </form>
    </div>

</div>